<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #app{
            width: 500px;
            height: 200px;
            border: 2px solid #c6da81;
            text-align: center;
        }
        span{
            font-size: 30px;
            color: #6c838e;
            font-weight: bolder;
            
        }
    </style>
</head>
<body>
    <div id="app">
        <img src="images/pic.png" alt="">
        <span @click="fn" >{{str}}</span>
        <br><br><br>
        <div>
            <input type="text" v-model="str" v-show="has">
        </div>
    </div>
</body>
<script src="js/vue.js"></script>
<script>
    let vm = new Vue({
        el:"#app",
        data:{
            has:false,
            str:"Edit Me"
        },
        methods:{
            fn(){
                this.has = !this.has
            }
        }
    })
</script>
</html>